﻿// Decompiled with JetBrains decompiler
// Type: UnityEngine.Rendering.StencilOp
// Assembly: UnityEngine.CoreModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// MVID: E6AE6B5A-2752-4B07-9528-C8B77C62CE79
// Assembly location: C:\Users\windys\Unity\2021.3.39f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.CoreModule.dll
// XML documentation location: C:\Users\windys\Unity\2021.3.39f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.CoreModule.xml

using UnityEngine.Bindings;

#nullable disable
namespace UnityEngine.Rendering
{
  /// <summary>
  ///   <para>Specifies the operation that's performed on the stencil buffer when rendering.</para>
  /// </summary>
  [NativeHeader("Runtime/GfxDevice/GfxDeviceTypes.h")]
  public enum StencilOp
  {
    /// <summary>
    ///   <para>Keeps the current stencil value.</para>
    /// </summary>
    Keep,
    /// <summary>
    ///   <para>Sets the stencil buffer value to zero.</para>
    /// </summary>
    Zero,
    /// <summary>
    ///   <para>Replace the stencil buffer value with reference value (specified in the shader).</para>
    /// </summary>
    Replace,
    /// <summary>
    ///   <para>Increments the current stencil buffer value. Clamps to the maximum representable unsigned value.</para>
    /// </summary>
    IncrementSaturate,
    /// <summary>
    ///   <para>Decrements the current stencil buffer value. Clamps to 0.</para>
    /// </summary>
    DecrementSaturate,
    /// <summary>
    ///   <para>Bitwise inverts the current stencil buffer value.</para>
    /// </summary>
    Invert,
    /// <summary>
    ///   <para>Increments the current stencil buffer value. Wraps stencil buffer value to zero when incrementing the maximum representable unsigned value.</para>
    /// </summary>
    IncrementWrap,
    /// <summary>
    ///   <para>Decrements the current stencil buffer value. Wraps stencil buffer value to the maximum representable unsigned value when decrementing a stencil buffer value of zero.</para>
    /// </summary>
    DecrementWrap,
  }
}
